<?php
include("config.php");
include("model/DB.php");
include("model/User.php");
$userObj = new User();
$login = User::Login($_POST['username'],$_POST['password']);
if($login){
 echo $login['type'];
}
else{
	echo "wrong";
}
?>